package cn.edu.scau.cmi.chenxiaoqin.exercise8;

public class Machine {
	public void checkBag(Goods goods)throws DangerException1{
		if(goods.isDanger()) {
			DangerException1 danger=new DangerException1();
			throw danger;
		}
	}
}
